Functions | Variables
Events_Interface Namespace Reference

Functions

def decoding_char (ctypes_char_array)
 
def event_callback (pEventInfo, pUser)
 
def image_callback (pData, pFrameInfo, pUser)
 
def print_interface_info (interfaceList)
 
def print_devices_info (deviceList)
 

Variables

 currentsystem = platform.system()
 
 input_func = raw_input
 
 fun_ctype = get_platform_functype()
 
 stEventInfo = POINTER(MV_EVENT_OUT_INFO)
 
 EventInfoCallBack = fun_ctype(None, stEventInfo, c_void_p)
 
 EVENT_CALL_BACK_FUN = EventInfoCallBack(event_callback)
 
 stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX)
 
 pData = POINTER(c_ubyte)
 
 FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p)
 
 IMAGE_CALL_BACK_FUN = FrameInfoCallBack(image_callback)
 
 SDKVersion = MvCamera.MV_CC_GetSDKVersion()
 
 interfaceList = MV_INTERFACE_INFO_LIST()
 
 transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE
 
 ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList)
 
 nInterfaceIndex = input_func("please input the number of the interface to connect:")
 
 cam_instance = MvCamera()
 
 interface_instance = MvCamera()
 
 curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents
 
 deviceList = MV_CC_DEVICE_INFO_LIST()
 
 nCamIndex = input_func("please input the number of the device to connect:")
 
 stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents
 
 nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize()
 

Function Documentation

◆ decoding_char()

def Events_Interface.decoding_char (   ctypes_char_array)
Safely decode a string from a ctypes character array.
Compatible with Python 2.x and 3.x, as well as 32-bit and 64-bit environments.

◆ event_callback()

def Events_Interface.event_callback (   pEventInfo,
  pUser 
)

◆ image_callback()

def Events_Interface.image_callback (   pData,
  pFrameInfo,
  pUser 
)

◆ print_interface_info()

def Events_Interface.print_interface_info (   interfaceList)

◆ print_devices_info()

def Events_Interface.print_devices_info (   deviceList)

Variable Documentation

◆ currentsystem

currentsystem = platform.system()

◆ input_func

input_func = raw_input

◆ fun_ctype

fun_ctype = get_platform_functype()

◆ stEventInfo

stEventInfo = POINTER(MV_EVENT_OUT_INFO)

◆ EventInfoCallBack

EventInfoCallBack = fun_ctype(None, stEventInfo, c_void_p)

◆ EVENT_CALL_BACK_FUN

EVENT_CALL_BACK_FUN = EventInfoCallBack(event_callback)

◆ stFrameInfo

stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX)

◆ pData

pData = POINTER(c_ubyte)

◆ FrameInfoCallBack

FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p)

◆ IMAGE_CALL_BACK_FUN

IMAGE_CALL_BACK_FUN = FrameInfoCallBack(image_callback)

◆ SDKVersion

SDKVersion = MvCamera.MV_CC_GetSDKVersion()

◆ interfaceList

interfaceList = MV_INTERFACE_INFO_LIST()

◆ transportLayerType

transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE

◆ ret

ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList)

◆ nInterfaceIndex

nInterfaceIndex = input_func("please input the number of the interface to connect:")

◆ cam_instance

cam_instance = MvCamera()

◆ interface_instance

interface_instance = MvCamera()

◆ curInterface

curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents

◆ deviceList

deviceList = MV_CC_DEVICE_INFO_LIST()

◆ nCamIndex

nCamIndex = input_func("please input the number of the device to connect:")

◆ stDeviceList

stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents

◆ nPacketSize

nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize()